package com.aaa.service.sds.Impl;

import com.aaa.dao.sds.TSdsRecordDedtailMapper;
import com.aaa.entity.sds.TSdsRecordDedtail;
import com.aaa.service.sds.TSdsRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TSdsRecordDedtail)表服务实现类
 *
 * @author ZXJ
 * @since 2022-11-01 16:27:17
 */
@Service
public class TSdsRecordDedtailServiceImpl implements TSdsRecordDedtailService {
   @Autowired
   private TSdsRecordDedtailMapper tSdsRecordDedtailDao;

   @Override
   public boolean insertBatch(List<TSdsRecordDedtail> details) {
      int i=0;
      for (TSdsRecordDedtail detail : details) {
         i+=tSdsRecordDedtailDao.insert(detail);
      }
      return details.size()==i;
   }
}

